#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
namespace Cephei.QL
{
     // <summary> 
	// ! \todo what was the rationale for limiting the grid to positive times? Investigate and see whether we can use it for negative ones as well.
	// </summary>
    [Guid ("53509475-8821-4367-8CFA-476E76C7B0BA"),ComVisible(true)]
	public interface ITimeGrid 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Double At(UInt64 i);
        
		 Double Back {get;}
        
		 UInt64 ClosestIndex(Double t);
        
		 Double ClosestTime(Double t);
        
		 Double Dt(UInt64 i);
        
		 Boolean Empty {get;}
        
		 Double Front {get;}
        
		 UInt64 Index(Double t);
        
		 Cephei.IVector<Double> MandatoryTimes {get;}
        
		 UInt64 Size {get;}
    }

    // <summary> 
	// ! \todo what was the rationale for limiting the grid to positive times? Investigate and see whether we can use it for negative ones as well. Factory
	// </summary>
   	[ComVisible(true)]
    public interface ITimeGrid_Factory // : Collection_Factory<ITimeGrid, ICell<ITimeGrid>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    ITimeGrid Create (Double end, UInt64 steps);
        
	    ITimeGrid Create ();
    }
}

